Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Select): Convert Select component to CSS Modules behind feature flag #5194

Merged
merged 5 commits into from
Oct 31, 2024

Conversation

randall-krauskopf
Copy link
Collaborator

@randall-krauskopf randall-krauskopf commented Oct 30, 2024

Closes https://github.com/github/primer/issues/4299

Changelog

Changed

  • Update the base primer exports and other internal references to use the Select component used in src/Select/Select.tsx instead of the duplicate one located at src/Select.tsx which was causing some confusion.
  • Convert select component to css module behind feature flag.

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

Testing & Reviewing

Copy link

changeset-bot bot commented Oct 30, 2024

🦋 Changeset detected

Latest commit: e9b9710

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks!

@github-actions github-actions bot added the integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm label Oct 30, 2024
@github-actions github-actions bot temporarily deployed to storybook-preview-5194 October 30, 2024 20:31 Inactive
Copy link
Contributor

github-actions bot commented Oct 30, 2024

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 97.54 KB (+0.16% 🔺)
packages/react/dist/browser.umd.js 97.87 KB (+0.12% 🔺)

@github-actions github-actions bot temporarily deployed to storybook-preview-5194 October 30, 2024 20:38 Inactive
@randall-krauskopf randall-krauskopf changed the title Feature(Select): Migrate Select component to CSS Modules behind feature flag feat(Select): Convert Select component to CSS Modules behind feature flag Oct 30, 2024
@primer-integration
Copy link

👋 Hi from github/github! Your integration PR is ready: https://github.com/github/github/pull/349335

@@ -3,7 +3,7 @@ import Autocomplete from '../Autocomplete'
import Box from '../Box'
import Checkbox from '../Checkbox'
import Radio from '../Radio'
import Select from '../Select'
import Select from '../Select/Select'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the newest Select component

@@ -1,5 +1,6 @@
import React from 'react'
import {Select, FormControl, Box, Heading} from '..'
import {FormControl, Box, Heading} from '..'
import Select from '.'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get Select from the correct location

@@ -1,5 +1,5 @@
import React from 'react'
import {Select} from '../../src'
import Select from '.'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get Select from the correct location

export {default as Select} from './Select'
export type {SelectProps} from './Select'
// Curently there is a duplicate Select component at the root of the dir, so need to be explicit about exporting from the src/Select dir
export {default as Select} from './Select/Select'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joshblack Should I explore deleting the src/Select.tsx file in a follow up PR?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be very much so appreciated if you have the time! 🙏

@primer-integration
Copy link

🟢 golden-jobs completed with status success.

@randall-krauskopf randall-krauskopf added this pull request to the merge queue Oct 31, 2024
Merged via the queue into main with commit 719def7 Oct 31, 2024
43 checks passed
@randall-krauskopf randall-krauskopf deleted the select-css-modules branch October 31, 2024 18:05
@primer primer bot mentioned this pull request Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants